package drds.binlog.parse.mysql;

import drds.binlog.common.Authors;
import drds.binlog.common.position.EntryPosition;
import drds.common.Author;
import lombok.Getter;
import lombok.Setter;

/**
 * slave status状态的信息
 */
@Author(name = Authors.LI_YANG)
public class SlaveEntryPosition extends EntryPosition
{

    @Setter
    @Getter
    private final String masterHost;
    @Setter
    @Getter
    private final String masterPort;

    public SlaveEntryPosition(String fileName, long position, String masterHost, String masterPort)
    {
        super(fileName, position);

        this.masterHost = masterHost;
        this.masterPort = masterPort;
    }

}
